package com.hq.ims.home.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * TODO
 *
 *
 *
 */
@RestController
public class ErrorController implements org.springframework.boot.web.servlet.error.ErrorController {

    @RequestMapping(value = "/error")
    public String handleError(HttpServletRequest request, Map<String, Object> model) {
        // 可以在这里添加更多的错误处理逻辑
        return "非法访问";
    }

    @RequestMapping(value = "")
    public String getErrorPath() {
        return null;
    }
}
